#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys


def main():
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')
    try:
        from django.core.management import execute_from_command_line
    except ImportError as exc:
        raise ImportError(
            "Couldn't import Django. Are you sure it's installed and "
            "available on your PYTHONPATH environment variable? Did you "
            "forget to activate a virtual environment?"
        ) from exc
    execute_from_command_line(sys.argv)


if __name__ == '__main__':
    main()
'''
常用命令
python manage.py runserver
python manage.py shell
python manage.py createsuperuser
python manage.py migrate
python manage.py makemigrations polls  运行 makemigrations 命令，Django 会检测你对模型文件的修改（在这种情况下，你已经取得了新的），并且把修改的部分储存为一次 迁移。
python manage.py sqlmigrate polls 0001  sqlmigrate 命令接收一个迁移的名称，然后返回对应的 SQL
python manage.py check   帮助你检查项目中的问题，并且在检查过程中不会对数据库进行任何操作



'''